<form [formGroup]="uploadWar">
  <nz-form-item>
    <nz-form-label nzFor="">上传文件</nz-form-label>
    <nz-form-control>
      <nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload" nzMultiple [nzFilter]="filters"
        [nzShowButton]="fileList.length < 1">
        <button nz-button>上传文件</button>
        <span style="color:#fff;text-indent: 2em">支持文件类型: war</span>
      </nz-upload>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-control class="modal-footer">
      <button nz-button [nzType]="'primary'" [nzLoading]="uploading" (click)="handleUpload()"
        [disabled]="fileList.length == 0" style="margin-top: 16px">
        {{ uploading ? '正在上传' : '开始上传' }}
      </button>
      <!-- <button nz-button nzType="primary" class="modal-footer-btn">确&nbsp;&nbsp;&nbsp;&nbsp;定</button> -->
      <button nz-button nzType="default" class="modal-footer-btn" nzGhost (click)="destroyModal()">取&nbsp;&nbsp;&nbsp;&nbsp;消</button>
    </nz-form-control>
  </nz-form-item>
</form>